﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Contact</title>
    <link href="../Files/Css/index.css" rel="stylesheet" charset="utf-8" type="text/css" />
    <link href="../Files/Css/formpost.css" rel="stylesheet" charset="utf-8" type="text/css" />
    <script type="text/javascript" src="../Files/Javascript/jquery.js"></script>
    <script type="text/javascript">
    //<![CDATA[
    $(function(){
            //如果是必填的，则加红星标识.
            $("form :input.required").each(function(){
                var $required = $("<strong class='high'> *</strong>"); //创建元素
                $(this).parent().append($required); //然后将它追加到文档中
            });
             //文本框失去焦点后
            $('form :input').blur(function(){
                 var $parent = $(this).parent();
                 $parent.find(".formtips").remove();
                 //验证主题
                 if( $(this).is('#ipt_theme') ){
                        if( this.value=="" ){
                            var errorMsg = 'Please enter a subject.';
                            $parent.append('<span class="formtips onError">'+errorMsg+'</span>');
                        }else{
                            var okMsg = 'OK.';
                            $parent.append('<span class="formtips onSuccess">'+okMsg+'</span>');
                        }
                 }
                 //验证邮箱地址
                 if( $(this).is('#ipt_mailname') ){
                    if( this.value=="" || ( this.value!="" && !/.+@.+\.[a-zA-Z]{2,4}$/.test(this.value))){
                          var errorMsg = 'Please enter the correct E-Mail Address.';
                          $parent.append('<span class="formtips onError">'+errorMsg+'</span>');
                    }else{
                          var okMsg = 'OK.';
                          $parent.append('<span class="formtips onSuccess">'+okMsg+'</span>');
                    }
                 }
                 //验证发送内容
                 if( $(this).is('#txt_message') ){
                    if( this.value==""){
                          var errorMsg = 'Please enter a message content.';
                          $parent.append('<span class="formtips onError">'+errorMsg+'</span>');
                    }else{
                          var okMsg = 'OK.';
                          $parent.append('<span class="formtips onSuccess">'+okMsg+'</span>');
                    }
                 }
            }).keyup(function(){
               $(this).triggerHandler("blur");
            }).focus(function(){
                 $(this).triggerHandler("blur");
            });//end blur

            
            //提交，最终验证。
             $('#btnSubmit').click(function(){
                    $("form :input.required").trigger('blur');
                    var numError = $('form .onError').length;
                    if(numError){
                        return false;
                    }
             });

            //重置
             $('#res').click(function(){
                    $(".formtips").remove();
             });
    })
    //]]>
    </script>
</head>
<body>
<div id="top">
  <div id="logo"><a href="index.php" target="_self" title="logo"><img src="../Files/images/LOGO.jpg" height="50" alt="logo" /></a></div>
  <div id="language">
  <ul>
  <li><a href="../Chs/index.php" target="_blank"><img src="../Files/images/chinese.jpg" /><p>中  文</p></a></li>
  <li><a href="../Eng/index.php" target="_blank"><img src="../Files/images/English.JPG" /><p>English</p></a></li>
  <li><a href="../Deu/index.php" target="_blank"><img src="../Files/images/german.JPG" /><p>German</p></a></li>
  </ul>
  </div>
</div>
<div id="nav">
  <div id="links">
    <ul>
      <li><a href="index.php" target="_self">Home</a></li>
      <li><a href="Company.php" target="_self">Company</a></li>
      <li><a href="Products.php" target="_self">Products</a></li>
      <li><a href="Contact.php" target="_self">Contact us</a></li>
    </ul>
  </div>
  <div id="banner"><img src="../Files/images/bg.jpg" width="905" height="200" /></div>
</div>
<div id="conwrap">
  <div id="conway">Your present position：Home >> Contact</div>
  <div id="conlt">
    <ul>
      <li><a href="Company.php" target="_self">Company</a></li>
      <li><a href="Contact.php" target="_self">Contact us</a></li>
    </ul>
  </div>
  <div id="conrt">
    <h2>Contact</h2>
     <div id="conmain">
     	 Address:<{$address}><br />
     	 Name:<{$name}><br />
      	 Telephone:<{$phone}><br />
     	 Fax:<{$fax}><br />
      	 E-mail:<{$mail}></div>
    <form id="form1" method="POST" action="Contact.server.php">
    <h2>Online message</h2>
    <div id="message"><br /><div>From&nbsp; ：&nbsp;
      <input id="ipt_mailname" name="ipt_mailname" type="text" class="required" size="20" /></div><br /><br />
      <div>topic:
      <input id="ipt_theme" name="ipt_theme" type="text" class="required" size="20" /></div><br /><br />
      <div>Content:
      <textarea id="txt_message" name="txt_message" class="required" style="width: 350px; height: 125px;"></textarea></div><br /><br />
      Send e-mail:<input id="btnSubmit" name="btnSubmit" type="submit" value="Send" />
    </div>
    </form>
  </div>
</div>
<p id="footer">Copyright (2009) 纽威进出口有限公司 All Rights Reserved. </p>
</body>
</html>